phy_com_y

The y position of the center of mass.

语法:

phy_com_y;


返回: Real(实数)


描述

This read-only variable will return the y position of the instances center of mass. This is calculated automatically based on the density, inertia and mass of the instance as defined by the appropriate functions.


例如:

xx = phy_com_x;
yy = phy_com_y;

The above code sets two variables to the x and y position of the instances center of mass.


上一页: Physics Variables
next: phy_dynamic
© Copyright YoYo Games Ltd. 2018 All Rights Reserved